SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 36888: ISPF statistics might not update when a PDS member is opened and updated in place

DetailsAboutRate It

SAS® might not update ISPF statistics for a PDS member that is being updated in place. The ISPF statistics are not changed, even when the FILESTAT option is set.

For example the following code fails to update the ISPF statistics:

options filestat;
filemane pdslib  'a.pds.library' disp=old;
data _null_; 
   infile pdslib(pdsmem) sharebufs; 
   file   pdslib(pdsmem);
   input @1 var1 $char3.; 
   if var1='efg';
     put 'xyz'; 
run;
A work around is to read and update the PDS member in two steps. For example:
filename pdslib  'a.pds.library' disp=old;  
options filestat;                             
data recs;                                    
   infile pdslib(pdsmem);                     
   input;                                     
   rec=_infile_;                              
run;                                          

data _null_;                                  
   set recs;                                  
   file   pdslib(pdsmem);                     
   oldlbl=substr(rec,1,3);                    
   chglbl='egf';                                 
   newlbl='xyz';                              
   if oldlbl eq chglbl then do;                  
     newrec=rec;                              
     substr(newrec,1,3)=newlbl;               
     put newrec;                              
   end;                                       
   else do;                                   
     put rec;                                 
   end;
run;


Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASz/OS9.1 TS1M3 SP49.3 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.